import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 导入初始化样式
import '@/styles/reset.less'

import componentsPlugin from '@/components'

import { directivePlugin } from '@/directives'

// createApp() -> app -> app.use(router) 插件的注册  [Vue.use]
// 链式调用
// 方法执行的返回值依旧是那个调用方法的对象
createApp(App)
  .use(store)
  .use(router)
  .use(componentsPlugin)
  .use(directivePlugin)
  .mount('#app')
